﻿<UserControl x:Class="BBInterfaceNET.Designer.Views.FileDesignerView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
             xmlns:b="clr-namespace:BBInterfaceNET.Designer.Behaviors"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid Background="WhiteSmoke">
        <i:Interaction.Behaviors>
            <b:ClickSelectBehavior/>
        </i:Interaction.Behaviors>
        <Border Margin="10" HorizontalAlignment="Left" VerticalAlignment="Top"
                BorderBrush="LightGray" BorderThickness="1" SnapsToDevicePixels="True"
                Background="White"
                
                Width="{Binding DisplayWidth}" 
                Height="{Binding DisplayHeight}"
                >
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <ContentControl HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch"
                            VerticalAlignment="Stretch" VerticalContentAlignment="Stretch"
                            Content="{Binding Screen.Banner}" Background="LightBlue"
                            IsHitTestVisible="True" FontSize="{Binding FontSize}" Grid.Row="0"
                                >
                    <i:Interaction.Behaviors>
                        <b:DragMoveBehavior />
                    </i:Interaction.Behaviors>
                </ContentControl>
                <ContentControl HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch"
                            VerticalAlignment="Stretch" VerticalContentAlignment="Stretch"
                            Content="{Binding Screen.Title}" Background="LightBlue"
                            IsHitTestVisible="True" FontSize="{Binding FontSize}" Grid.Row="1">
                    <i:Interaction.Behaviors>
                        <b:DragMoveBehavior />
                    </i:Interaction.Behaviors>
                </ContentControl>
                <ContentControl HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch"
                            VerticalAlignment="Stretch" VerticalContentAlignment="Stretch"
                            Content="{Binding Screen}" Background="LightBlue" Padding="0"
                            IsHitTestVisible="True" FontSize="{Binding FontSize}" Grid.Row="2">
                    <i:Interaction.Behaviors>
                        <b:DragMoveBehavior />
                    </i:Interaction.Behaviors>
                </ContentControl>
                <ContentControl HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch"
                            VerticalAlignment="Stretch" VerticalContentAlignment="Stretch"
                            Content="{Binding Screen.Status}" Background="LightBlue"
                            IsHitTestVisible="True" FontSize="{Binding FontSize}" Grid.Row="3">
                    <i:Interaction.Behaviors>
                        <b:DragMoveBehavior />
                    </i:Interaction.Behaviors>
                </ContentControl>
            </Grid>
        </Border>
        
    </Grid>
</UserControl>
